#ifndef _CONFIG_H_
#define _CONFIG_H_

#include <string>
#include <boost/unordered_map.hpp>

using namespace std;

class Configuration
{
public:
	int port;
	int control_port;
	int thread_count;
	int protocol;
	int version;

	class GameServerInfo
	{
	public:
		int type;
		int id;
		string ip;
		int port;
	};

	boost::unordered_map<int, GameServerInfo *> server_info_map;
	
private:
	string _config_file_name;

public:
	void Init(std::string &config_file_name);
	int ReadConfig();
};

#endif
